﻿using StarsAdmin.Core.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StarsAdmin.Application.User.Dtos
{
    public class UpdatePhoneNumberInput
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        [Required(ErrorMessage = "id 字段是必须的")]
        public long Id { get; set; }

        /// <summary>
        /// 电话号码
        /// </summary>
        [Required(ErrorMessage = "phoneNumber 字段是必须的")]
        [PhoneNumber(ErrorMessage = "手机号码格式不正确")]
        public string PhoneNumber { get; set; }
    }
}